package com.group3.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "文件信息")
public class File {

    @ApiModelProperty(value = "文件id")
    private Integer id;

    @ApiModelProperty(value = "文件在服务器路径")
    private String fileUrl;

    @ApiModelProperty(value = "文件来源（0：教师下发作业，1：作业提交附件，2：学生请假附件；）")
    private Integer originType;

    @ApiModelProperty(value = "文件来源id")
    private Integer originId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl == null ? null : fileUrl.trim();
    }

    public Integer getOriginType() {
        return originType;
    }

    public void setOriginType(Integer originType) {
        this.originType = originType;
    }

    public Integer getOriginId() {
        return originId;
    }

    public void setOriginId(Integer originId) {
        this.originId = originId;
    }
}